avoiding a rectangular shape